<div class="sf_admin_pagination pagination pagination-mini pull-right">
    <ul>
        <li>
            <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=1"><<</a>
        </li>

        <li>
            <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $pager->getPreviousPage() ?]"><</a>
        </li>

        [?php foreach ($pager->getLinks() as $page): ?]
        [?php if ($page == $pager->getPage()): ?]
        <li class="active">
            <a href="#">[?php echo $page ?]</a>
        </li>
        [?php else: ?]
        <li>
            <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $page ?]">[?php echo $page ?]</a>
        </li>
        [?php endif; ?]
        [?php endforeach; ?]

        <li>
            <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $pager->getNextPage() ?]">></a>
        </li>

        <li>
            <a href="[?php echo url_for('@<?php echo $this->getUrlForAction('list') ?>') ?]?page=[?php echo $pager->getLastPage() ?]">>></a>
        </li>
    </ul>
</div>